#include <stdio.h>
#include <stdlib.h>
#include <sys/personality.h>
#include <unistd.h>

int
main(int argc, char **argv)
{
	if (argc < 2)
		exit(EXIT_FAILURE);

	if (personality(PER_SVR4) == -1) {
		perror("personality");
		exit(EXIT_FAILURE);
	}

	execl("/usr/bin/pulseaudio", "pulseaudio",
			"--log-level=0", "-L", argv[1], NULL);

	exit(EXIT_SUCCESS);
}
